<div class="box-i">
  <div class="b-h has-a"><h2 class="fl-l">评价商品</h2></div>
  <form class="post-col" id="comment_goods_f">
    
   <?php foreach($res as $k=>$v){?>
   <div class="separator"></div>
   <input type="hidden" name="data_id[<?php echo $k?>]" value="<?php echo $this->PU->u_ed($v['goods_id'])?>" />
   <p><img class="img-roud fl-l" height="50" src="<?php e_qh($v['pic'])?>" />
      <b><?php e_h($v['name'])?></b>
   </p>
   <div class="sh cl-l">打分：</div>
   <div class="sp"><?php html::radio('name="val['.$k.']"', $this->gVal(), 1)?></div> 
   <div class="sh">内容：</div>
   <div class="sp"><textarea name="content[<?php echo $k?>]" rows="5" cols="50"></textarea></div>
   <div class="epp"></div>
   <?php }?>
   
   <input type="hidden" name="ord_id" value="<?php echo $this->PU->u_ed($v['order_id'])?>" />
   <p><input type="button" class="submit" value="提交" onclick="comment_save(this)" /></p>
  </form>
</div>

<script>
function comment_save(o){
	o.disabled=true;
	$.post('?u=cgoods\\comment-fsave', $('#comment_goods_f').serialize(), function(r){
		o.disabled=false;
		if(checAjaxRe(r))document.location.href="?u=cshop\\order\\p";
	});
}
</script>
<style>
.img-roud{margin:0 8px 15px 0;}
.epp{padding-top:30px; clear:left;}</style>
